﻿#pragma once

#include <QWidget>
#include "ui_ReadWindow.h"
#include "Coder/Mp4Decoder.h"
#include "Coder/AACDecoder.h"

class ReadWindow : public QWidget
{
    Q_OBJECT

public:
    ReadWindow(QWidget *parent = Q_NULLPTR);
    ~ReadWindow();

protected:
    void closeEvent(QCloseEvent* e);

private slots:
    // 选择文件
    void on_file_clicked();

    // 开始预览
    void on_start_clicked();

    // 停止预览
    void on_stop_clicked();

private:
    Ui::ReadWindow ui;

    // mp4解包器
    Mp4Decoder _mp4Decoder;
    AACDecoder _aacDecoder;
};
